restoreRequiredCache

suspend fun restoreRequiredCache(paths: List<String>, key: String, restoreKeys: List<String> = emptyList(), useAzureSdk: Boolean = true, downloadConcurrency: Int = 8, timeoutInMs: Int = 30000): String
suspend fun restoreRequiredCache(paths: List<Path>, key: String, restoreKeys: List<String> = emptyList(), useAzureSdk: Boolean = true, downloadConcurrency: Int = 8, timeoutInMs: Int = 30000): String

Restores cache from keys, throwing if the cache misses.

Parameters

paths

a list of file paths to restore from the cache

key

an explicit key for restoring the cache

restoreKeys

an optional ordered list of keys to use for restoring the cache if no cache hit occurred for key

useAzureSdk

whether to use the Azure Blob SDK to download caches that are stored on Azure Blob Storage to improve reliability and performance

downloadConcurrency

Number of parallel downloads (this option only applies when using the Azure SDK)

timeoutInMs

Maximum time for each download request, in milliseconds (this option only applies when using the Azure SDK)